using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using MMM.Core.Domain;
using ServiceStack.ServiceHost;
using System.ComponentModel;
using System.ComponentModel.DataAnnotations;
using ServiceStack.DataAnnotations;

namespace MMM.Services.Type
{
    /// <summary>
    /// 企业联系人
    /// </summary>
    [Serializable]
    [Route("/api/companylinkman", "POST,PUT")]
    public class CompanyLinkman : EntityBase<CompanyLinkman>
    {
        /// <summary>
        /// 企业Id
        /// </summary>
        [StringLength(50)]
        [Required]
        public String CompanyId { get; set; }
        /// <summary>
        /// 企业名称
        /// </summary>
        [StringLength(50)]
        [Required]
        [Index]
        public String CompanyName { get; set; }
        /// <summary>
        /// 部门
        /// </summary>
        [StringLength(50)]
        public String Department { get; set; }
        /// <summary>
        /// 联系人Id
        /// </summary>
        [StringLength(50)]
        [Required]
        public String EmpId { get; set; }
        /// <summary>
        /// 联系人姓名
        /// </summary>
        [StringLength(50)]
        [Required]
        [Index]
        public String EmpName { get; set; }
        /// <summary>
        /// 职务
        /// </summary>
        [StringLength(50)]
        public String Position { get; set; }
        /// <summary>
        /// 称谓
        /// </summary>
        [StringLength(50)]
        public String Title { get; set; }
        /// <summary>
        /// 联系邮箱
        /// </summary>
        [StringLength(50)]
        [Required]
        public String Email { get; set; }
        /// <summary>
        /// 办公电话
        /// </summary>
        [StringLength(50)]
        [Required]
        public String OfficialTel { get; set; }
        /// <summary>
        /// 办公移动电话
        /// </summary>
        [StringLength(50)]
        public String OfficialMobile { get; set; }
        /// <summary>
        /// 上级职务
        /// </summary>
        [StringLength(50)]
        public String SuperiorPositon { get; set; }
        /// <summary>
        /// 上级姓名
        /// </summary>
        [StringLength(50)]
        public String SuperiorName { get; set; }
        /// <summary>
        /// 备注
        /// </summary>
        [StringLength(150)]
        public String Remark { get; set; }

    }
}
